
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'programa-academico-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note"><?php echo t('Los Campos con','nucleo_etiqueta') . ' <span class="required">*</span> ' . t('son requeridos','nucleo_etiqueta');?> </p>

	<?php echo $form->errorSummary($model); ?>
	<fieldset>
		<fieldset>
			<legend><?php echo t('Datos Generales','carrera_etiqueta')?></legend>
			<div class="width_half">
				<?php 
					echo $form->labelEx($model,'programaacademico_nombre');
					echo $form->textField($model,'programaacademico_nombre',array('size'=>60,'maxlength'=>500)); 
					echo $form->error($model,'programaacademico_nombre'); 
				?>
			</div>
		
			<div class="width_half">
				<?php 
					echo $form->labelEx($model,'programaacademico_tipoprogramaacademico_id');
					echo $form->dropDownList(
    							$model,
                                'programaacademico_tipoprogramaacademico_id',
                                CHtml::listData(
                                					TipoProgramaAcademico::model()->findAll(),
                                					'tipoprogramaacademico_id',
													'tipoprogramaacademico_nombre'
                                                   )
											);
					echo $form->error($model,'programaacademico_tipoprogramaacademico_id'); 
				?>
			</div>
		
			<div class="width_half">
			<?php 
				echo $form->labelEx($model,'programaacademico_titulo');
				echo $form->textField($model,'programaacademico_titulo',array('size'=>60,'maxlength'=>500));
				echo $form->error($model,'programaacademico_titulo');
			?>
			</div>
		
			<div class="width_half">
			<?php 
				echo $form->labelEx($model,'programaacademico_analitico');
				echo $form->textField($model,'programaacademico_analitico',array('size'=>60,'maxlength'=>500));
				echo $form->error($model,'programaacademico_analitico');
			?>
			</div>
			
			<div class="width_half">
			<?php 
				echo $form->labelEx($model,'programaacademico_plan');
				echo $form->textField($model,'programaacademico_plan',array('size'=>60,'maxlength'=>500));
				echo $form->error($model,'programaacademico_plan');
			?>
			</div>
			
			<div class="width_half">
			<?php 
				echo $form->labelEx($model,'programaacademico_vigente');
				echo $form->dropDownList(
									$model,
									'programaacademico_vigente',
									array(0 => 'No', 1 => 'Si')				
				);
				echo $form->error($model,'programaacademico_vigente');
			?>
			</div>

		</fieldset>
		
		<fieldset>
			<?php 
				echo CHtml::submitButton(t($model->isNewRecord ? 'Crear' : 'Guardar','nucleo_etiqueta'),array('class'=>'submit'));
			?>
		</fieldset>

	</fieldset>
<?php $this->endWidget(); ?>

</div><!-- form -->
